package com.zmc.admin.infrastructure.constant;

/**
 * @Author：zmc
 */
public class ErrorCodeConstants {

    //login and register 、 identity
    public static final String CAPTCHA_EXCEPTION = "验证码错了，请重新输入";

    public static final String CODE_HAS_SEND_EXCEPTION = "验证码已发送，请稍等";

    public static final String USERNAME_PASSWORD_EXCEPTION = "用户名或密码错误，请重新输入";

    public static final String PHONE_USED_EXCEPTION = "当前手机号已被注册";

    public static final String USERNAME_USED_EXCEPTION = "当前账号已被注册";

    public static final String EMAIL_USED_EXCEPTION = "当前邮箱已被注册";

    public static final String USER_OLD_NEW_PASSWORD_SAME_EXCEPTION = "新密码不能与旧密码相同";

    public static final String USER_OLD_PASSWORD_ERROR_EXCEPTION = "旧密码错误";

    public static final String USER_DELETE_EXCEPTION = "当前用户不能被删除";

    public static final String USER_NO_IDENTITY_EXCEPTION = "该商户没有参与认证";

    //config
    public static final String CONFIG_KEY_EXIT_EXCEPTION = "参数键名已存在";

    //dept
    public static final String DEPT_EXIT_EXCEPTION = "部门名称已存在";

    public static final String DEPT_PARENT_IS_OWNER_EXCEPTION = "上级部门不能是自己";

    public static final String DEPT_HAS_STOP_CHILD_EXCEPTION = "该部门包含未停用的子部门";

    public static final String DEPT_HAS_CHILD_EXCEPTION = "存在下级部门,不允许删除";

    public static final String DEPT_HAS_USER_EXCEPTION = "部门存在用户,不允许删除";

    //menu
    public static final String MENU_EXIT_EXCEPTION = "菜单名称已存在";

    public static final String MENU_URL_EXCEPTION = "地址必须以http(s)://开头";

    public static final String MENU_PARENT_OWNER_EXCEPTION = "上级菜单不能选择自己";

    public static final String MENU_HAS_CHILD_EXCEPTION = "存在子菜单,不允许删除";

    public static final String MENU_HAS_USED_EXCEPTION = "菜单已分配,不允许删除";

    //post
    public static final String POST_NAME_EXIT_EXCEPTION = "岗位名称已存在";

    public static final String POST_CODE_EXIT_EXCEPTION = "岗位编码已存在";

    //role
    public static final String ROLE_PERMISSION_EXCEPTION = "角色分配异常";

}
